<!--{template common/header}-->
	<!--{template home/spacecp_header}-->
			<form action="home.php?mod=spacecp&ac=sendmail" method="post" autocomplete="off">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="setsendemailsubmit" value="true" />
				<input type="hidden" name="referer" value="$_G[referer]" />
			<!--{if empty($space['emailstatus']) }-->
				<h2 class="mtm">{lang activate_mailbox_first}</h2>
				<p>{lang activate_mailbox_message}</p>
				<p class="mtm">
					<a href="home.php?mod=spacecp&ac=profile&op=password&resend=1" class="xi2">{lang click_activate_mailbox} $space[email]</a>
				</p>
			<!--{else}-->
				<!--{eval				
					$mailtype = array(
						'wall' => '{lang message}',
						'piccomment' => '{lang pic_comment}',
						'blogcomment' => '{lang blog_comment}',
						'sharecomment' => '{lang share_comment}',
						'magic' => '{lang magics_title}',
						'sharenotice' => '{lang share_notification}',
						'clickblog' => '{lang blog_position}',
						'clickpic' => '{lang pic_position}',
						'credit' => '{lang credits}',
						'doing' => '{lang doing}',
						'pcomment' => '{lang topic_comment}',
						'post' => '{lang topic_reply}',
						'show' => '{lang friend_top}',
						'task' => '{lang task}',
						'goods' => '{lang trade}',
						'group' => '{lang group}',
						'thread' => '{lang theme}',
						'system' => '{lang system}',
						'friend' => '{lang friends}',
						'debate' => '{lang debate}',
						'album' => '{lang album}',
						'blog' => '{lang blog}',
						'poll' => '{lang poll}',
						'activity' => '{lang activity}',
						'reward' => '{lang reward}',
						'share' => '{lang share}',
						'profile' => '{lang update_presonal_profile}'
					);
				}-->
				<p class="tbmu">{lang reminder_mail_message_1}$_G[setting][sendmailday]{lang reminder_mail_message_2}:</p>
				<table cellspacing="0" cellpadding="0" class="tfm">
					<tr>
						<th>{lang mail_type}</th>
						<td class="pcl">
							<!--{loop $mailtype $key $desc}-->
								<label><input type="checkbox" class="pc" name="sendmail[$key]" value="1" {if $sendmail[$key]} checked="checked"{/if} />&nbsp;$desc</label>
							<!--{/loop}-->
						</td>
					</tr>
					
					<tr>
						<th>{lang mail_frequency}</th>
						<td class="pcl">
							<select name="sendmail[frequency]" class="ps">
								<option value="0">{lang send_real_time}</option>
								<option value="86400" $sendmail[frequency][86400]>{lang send_once_per_day}</option>
								<option value="604800" $sendmail[frequency][604800]{if !$sendmail} selected="selected"{/if}>{lang send_once_per_week}</option>
							</select>
							<p class="d">
								{lang mail_send_your_mail} $space[email] (<a href="home.php?mod=spacecp&ac=profile&op=password">{lang modify_mailbox}</a>)
							</p>
						</td>
					</tr>
					<tr>
						<th>&nbsp;</th>
						<td>
							<button type="submit" name="setsendemail" class="pn pnp"><em>{lang save}</em></button>
						</td>
					</tr>
				</table>
			<!--{/if}-->
				
			</form>
		</div>
	</div>
	<div class="sd">
		{subtemplate common/userabout}
	</div>
</div>
<!--{template common/footer}-->